package com.czk.ssachatclientchatmodel.config;

import org.springframework.ai.chat.client.ChatClient;
import org.springframework.ai.chat.model.ChatModel;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: chenzhangkun
 * @CreateTime: 2025-10-14
 * @Description:
 * @Version: 1.0
 */
@Configuration
public class ChatClientConfig {
    /**
     * 实例化chatClient对象
     *
     * @param dashScopeChatModel
     * @return
     */
    @Bean
    public ChatClient chatClient(ChatModel dashScopeChatModel) {
        return ChatClient.builder(dashScopeChatModel).build();
    }

}
